<link rel="stylesheet" href="/public/themes/second/css/navigationTab.css" type="text/css">

<ul  class="navigationTab">
<li> <a href="<?=$this->hvnUrl(array('module' => 'tour', 'action' => 'edit'))?>?id=<?=$this->id?>"> <?=t(802)?> </a> </li>
<li> <a href="<?=$this->hvnUrl(array('module' => 'tour', 'action' => 'new-tleg'))?>?tid=<?=$this->id?>&leg_number=<?=$this->leg_number?>"> New Tleg </a> </li>
<li > <a href="<?=$this->hvnUrl(array('module' => 'tour', 'action' => 'gallery'))?>?id=<?=$this->id?>"> <?=t(6)?> </a> </li>
<li class="selected"> <a href="<?=$this->hvnUrl(array('module' => 'tour', 'action' => 'list-tleg'))?>?id=<?=$this->id?>">Tleg </a> </li>
<li> <a target="_blank" href="<?=$this->hvnUrl(array('module' => 'tour', 'action' => 'view'))?>?id=<?=$this->id?>"> <?=t(134)?> </a> </li>
</ul>

<table style="border:1px solid green; width:100%;">
	<tr>
		<td>ID</td>
		<td>Tleg Name</td>
		<td>Operator</td>
	<tr/>
	
	<?foreach ($this->listTleg as $tl):?>
	<tr>
		<td><?=$tl['id']?></td>
		<td><b><?=$tl['tleg_name']?></b>
			<p>
			<?=str_first_words(strip_tags($tl['description']), 50)?>
			</p>
		</td>
		<td width="10%"><a href="<?=$this->hvnUrl(array('module' => 'tour', 'action' => 'edit-tleg'))?>?id=<?=$tl['id']?>&tid=<?=$tl['tid']?>"> <?=t(38)?></a>
		<br/>
		<? $languages =  Zend_Registry::get('configuration')->languages;?>
			<? foreach ($languages as $k=>$v) :?>
		        <? if ($k != $this->aList[$tl['id']]['article_language']) :?> 
		    		<a style="text-decoration:none" href="<?=$this->hvnUrl(array('module' => 'article', 'action' => 'translate'))?>?id=<?=$tl['article_id']?>&to=<?=$k?>"><?=substr(strstr($v,'_'),1)?></a>,
	    	<?endif?>
	    <?endforeach?>
		</td>
	</tr>
	<?endforeach?>
</table>
<br/>
<a href="<?=$this->hvnUrl(array('module' => 'tour', 'action' => 'new-tleg'))?>?tid=<?=$this->id?>&leg_number="> New Tleg</a>

